/* tslint:disable */
/* eslint-disable */

import React, { CSSProperties, SVGAttributes, FunctionComponent } from 'react';
import { getIconColor } from './helper';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
  size?: number;
  color?: string | string[];
}

const DEFAULT_STYLE: CSSProperties = {
  display: 'block',
};

const IconSearch: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
  const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;

  return (
    <svg viewBox="0 0 1024 1024" width={size + 'px'} height={size + 'px'} style={style} {...rest}>
      <path
        d="M448 128c176.736 0 320 143.264 320 320 0 76.8-27.072 147.296-72.192 202.464l190.816 190.912a32 32 0 0 1-42.24 47.904l-3.008-2.656-190.784-190.912A318.688 318.688 0 0 1 448 768C271.264 768 128 624.736 128 448S271.264 128 448 128z m0 64a256 256 0 1 0 0 512 256 256 0 0 0 0-512z"
        fill={getIconColor(color, 0, '#333333')}
      />
    </svg>
  );
};

IconSearch.defaultProps = {
  size: 18,
};

export default IconSearch;
